//
// Created by 70962 on 2025/9/1.
//

#ifndef TASK_H
#define TASK_H

#include <string>
#include <sstream>
#include <iomanip>

class Task {
public:
  int id;
  std::string description;
  int priority;   // 1-高，2-中，3-低
  std::string dueDate;  // 格式：YYYY-MM-DD

  std::string toString() const{
    std::ostringstream oss;
    oss << "ID: " << id
    << ", 描述:" << description
    << ", 优先级:" << priority
    << ", 截止日期:" << dueDate;

    return oss.str();
  }
};


#endif //TASK_H
